/*
 * @Description:
 * @FilePath: /glm_frontend/src/api/problem.js
 */
/* 问题反馈API接口 */
import request from '@/utils/request'

// 获取问题列表
export const getProblemListAPI = (data) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/problem/searchProblem',
		method: 'POST',
		data
	})
}

// 提交问题反馈
export const submitProblemAPI = (data) => {
	return request({
		url: '/glm/problem/submit',
		method: 'POST',
		data
	})
}

// 查看问题详情
export const getProblemInfoAPI = (data) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/problem/lookProblem',
		method: 'POST',
		data
	})
}

// 供应商关闭问题
export const closeProblemAPI = (data) => {
	return request({
		url: '/glm/problem/closeProblem',
		method: 'POST',
		data
	})
}

/* 消息中心 */
export const getNotifyListAPI = (data) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/message/searchRecords',
		method: 'POST',
		data
	})
}

/* 获取问题-创建人接收人名字 */
export const getNamesAPI = (data) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/problem/add',
		method: 'POST',
		data
	})
}

// 资料修改通知-待处理更改状态
export const updateInfoStatusAPI = (data) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/message/updateStatus',
		method: 'POST',
		data
	})
}

// 获取单条资料修改信息对应的审核状态
export const getCheckStatusAPI = (params) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/message/selectDataStatus',
		method: 'POST',
		params
	})
}

// 获取技术部负责人账号名字
export const getJSBFZRAPI = (params) => {
	return request({
		headers: { repeatSubmit: false },
		url: '/glm/problem/problemType',
		method: 'POST',
		params
	})
}

// 跟单员确认幅宽缩率问题
export const merchandiserConfirm = (data) => {
	return request({
		url: '/glm/problem/merchandiserConfirm',
		method: 'POST',
		data
	})
}
